import request from "./http";

//课堂分类数据
//https://api.ecook.cn/public/getOnlineTeachTags.shtml
export function getOnlineTeachTagsData(){
    return request({
        url:"public/getOnlineTeachTags.shtml?version=16.8.0",
        method:"post"
    })
}
//课程专辑数据
//https://api.ecook.cn/public/getOnlineTeachAlbumList.shtml
export function getOnlineTeachAlbumListData(){
    return request({
        url:"public/getOnlineTeachAlbumList.shtml?version=16.8.0",
        method:"post"
    })
}
//全部课程数据
//https://api.ecook.cn/public/getOnlineTeachList.shtml
export function getOnlineTeachListData(data){
    return request({
        url:"public/getOnlineTeachList.shtml",
        method:"post",
        params:data
    })
}
//Tag分类数据
//https://api.ecook.cn/public/getOnlineTeachList.shtml
export function getOnlineTeachTagListData(data){
    return request({
        url:"public/getOnlineTeachList.shtml",
        method:"get",
        params:data
    })
}
//课程详情数据
//https://api.ecook.cn/public/getOnlineTeachById.shtml
export function getOnlineTeachByIdtData(data){
    return request({
        url:"public/getOnlineTeachById.shtml?version=16.8.0",
        method:"get",
        params:data
    })
}
//该课程作者其他相关课程
//https://api.ecook.cn/public/getOtherOnlineTeachListByTeachid.shtml
export function getOtherOnlineTeachListByIdtData(data){
    return request({
        url:"public/getOtherOnlineTeachListByTeachid.shtml",
        method:"get",
        params:data
    })
}
//课程专辑详情
//https://api.ecook.cn/public/getOnlineTeachAlbumDetails.shtml
export function getOnlineTeachAlbumDetailsData(data){
    return request({
        url:"public/getOnlineTeachAlbumDetails.shtml",
        method:"post",
        params:data
    })
}
//课程专辑底部价格、会员详情
//https://api.ecook.cn/pub/check/user/pay
export function getCheckuserpayData(data){
    return request({
        url:"pub/check/user/pay",
        method:"get",
        params:data
    })
}